<?php
/**
 * 测试静态HTML缓存
 *
 * @filesource testHtmlCache.php
 * @package DsCache
 * @subpackage 
 * @version $id: 0.1, utf8, Fri Dec 18 09:58:16 CST 2009
 * @author LD King <kldscs[at]gmail.com>
 * @copyright Copyleft (D.) 2007 - 2009 MiFunny China Inc.
 * @link http://mifunny.info/
 * @example 
 *   
 */
error_reporting(E_ALL);
require_once '../Cache.class.php';
require_once '../ob_html_cache.func.php';

$_config['DsCache'] = array(
	'cache_type'=> 'htmlfile', //生成静态HTML(必须)
	'cache_dir' => dirname(__FILE__).'/tmp', //缓存目录(必须)
	'cache_dir_umask'   => 0777,
	'life_time' => 900, //全局缓存时间 900s.
	'gizp' => true, //使用gzip压缩输出
	);
ob_cache('testHtmlCache.php');


date_default_timezone_set('UTC');
echo "What is the time? Oh~~ ".date("D M j G:i:s T Y");

?>